﻿<Window x:Class="YourControl.ViewPicture.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="View Pictures" Height="350" Width="525">
    <Grid ShowGridLines="True" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="100"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <ScrollViewer Grid.ColumnSpan="3" x:Name="PictureScrollViewer" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Hidden" >
            <StackPanel x:Name="Layout" Orientation="Horizontal"   CanHorizontallyScroll="True">
                <Button Content="Button" Height="23" HorizontalAlignment="Right" Margin="0,281,8,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
            </StackPanel>
        </ScrollViewer>
        <Canvas Opacity="0.1" x:Name="leftWall" Grid.Column="0" Background="Wheat"></Canvas>
        <Canvas Opacity="0.1" x:Name="rightWall" Grid.Column="2" Background="Azure"></Canvas>
    </Grid>

</Window>
